package com.fita.admin.service.data;

import com.demo2do.core.entity.page.Page;
import com.demo2do.core.persistence.support.QueryFilter;
import com.fita.admin.service.DataService;
import com.fita.entity.data.ModelGroup;

import java.util.List;

/**
 * 
 * @author cuteHU
 *
 */
public interface ModelGroupService extends DataService<ModelGroup> {

    /**
     * @return
     */
    int count();

    /* (non-Javadoc)
     * @see com.fita.admin.service.DataService#listByPage(java.lang.Class, com.demo2do.core.entity.page.Page)
     */
    List<ModelGroup> listByPage(Class<ModelGroup> clazz, Page page);

    /**
     * @param class1
     * @param preparedFilter
     * @return
     */
    int countSearch(Class<ModelGroup> class1, QueryFilter preparedFilter);

    /**
     * @param modelGroup
     */
    void createModelGroup(ModelGroup modelGroup);

    /**
     * @param modelGroup
     */
    void freeze(ModelGroup modelGroup);

    /**
     * @param modelGroup
     */
    void activate(ModelGroup modelGroup);

    /**
     * @param id
     * @param modelGroup
     */
    void update(Long id, ModelGroup modelGroup);

}
